cmake: resolve symlinks in ClangConfig.cmake
authorPeter Wu <peter@lekensteyn.nl>
Fri, 4 May 2018 13:55:26 +0000 (15:55 +0200)
committerJames Clarke <jrtc27@debian.org>
Fri, 20 Dec 2019 18:30:29 +0000 (18:30 +0000)
commit2e1f4a9d184ec102ce8587207c53b6c07142d669
tree3ca5cc44d3f1ecc488b2096b2d4dd5f89a1a7b78
parentd6820ac782161d02e423d69aa96ca04e41cf048a
cmake: resolve symlinks in ClangConfig.cmake

Ensure that symlinks such as /usr/lib/cmake/clang-X.Y (pointing to
/usr/lib/llvm-X.Y/lib/cmake/llvm) are resolved. This ensures that
CLANG_INSTALL_PREFIX ends up to be /usr/lib/llvm-X.Y instead of /usr.

Partially addresses PR37128

Gbp-Pq: Name 0001-tools-clang-cmake-resolve-symlinks-in-ClangConfig.cmake.patch
clang/cmake/modules/CMakeLists.txt